package com.t2t.top.action.$17chain.filterchain;

public class SensitiveFilter implements Filter {
    public void doFilter(Request req, Response resp, FilterChain chain) {
        // 过滤req.reqStr中的敏感词
        req.reqStr = req.reqStr.replace("敏感", "").replace("被就业", "就业");

        System.out.println("---SensitiveFilter() start ---");
        chain.doFilter(req, resp);
        System.out.println("---SensitiveFilter() end---");
    }
}